/*
 * @: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2022-02-28 10:41:33
 * @LastEditors: ziwei
 * @LastEditTime: 2022-03-02 15:03:47
 */
class ExecutionContextStack{
    constructor(){
        this.executionContexts= [];
    }
    push(executionContext){
        this.executionContexts.push(executionContext)
    }
    pop(){
        this.executionContexts.pop()
    }
    get current(){
       this.executionContexts[this.executionContexts.length-1] 
    }
}
module.exports = ExecutionContextStack